package com.xueyi.system.equipment.domain.po;

import java.time.LocalDateTime;
import java.util.Date;

import cn.hutool.json.JSONArray;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import com.xueyi.system.equipment.domain.dto.BaseFireEquipmentDto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xueyi.common.core.annotation.Excel;

/**
 * 库房检查 持久化对象
 *
 * @author yanhe
 */
@TableName(value = "base_fire_equipment", excludeProperty = {"name", "sort"},autoResultMap = true)
public class BaseFireEquipmentPo extends TBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 部门id
     */
    @Excel(name = "部门id")
    @TableField("dept_id")
    private Integer deptId;

    /**
     * 部门名称
     */
    @Excel(name = "部门名称")
    @TableField("dept_name")
    private String deptName;

    /**
     * 检查时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "检查日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("check_date")
    private LocalDateTime checkDate;

    /**
     * 存在问题
     */
    @Excel(name = "存在问题")
    @TableField("exist_problems")
    private String existProblems;

    /**
     * 处理措施
     */
    @Excel(name = "处理措施")
    @TableField("handl_measures")
    private String handlMeasures;

    /**
     * 附件
     */
    @Excel(name = "附件")
    @TableField(value = "appendix", typeHandler = FastjsonTypeHandler.class)
    private JSONArray appendix;


    /**
     * 检验员
     */
    @Excel(name = "检验员")
    @TableField("checker")
    private String checker;

    /**
     * 状态
     */
    @Excel(name = "状态")
    @TableField("status")
    private String status;

    public JSONArray getAppendix() {
        return appendix;
    }

    public void setAppendix(JSONArray appendix) {
        this.appendix = appendix;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptName() {
        return deptName;
    }

    public LocalDateTime getCheckDate() {
        return checkDate;
    }

    public void setCheckDate(LocalDateTime checkDate) {
        this.checkDate = checkDate;
    }

    public void setExistProblems(String existProblems) {
        this.existProblems = existProblems;
    }

    public String getExistProblems() {
        return existProblems;
    }

    public void setHandlMeasures(String handlMeasures) {
        this.handlMeasures = handlMeasures;
    }

    public String getHandlMeasures() {
        return handlMeasures;
    }


    public void setChecker(String checker) {
        this.checker = checker;
    }

    public String getChecker() {
        return checker;
    }

    @Override
    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String getStatus() {
        return status;
    }

}
